package com.varian.system.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ben
 * @since 2024/7/3
 */
@Mapper
public interface RoleMenuMapper {

    List<Long> selectMenuIdsByRoleId(@Param("roleId") Long roleId);

    int deleteByRoleId(@Param("roleId") Long roleId);

    int deleteByMenuId(@Param("menuId") Long menuId);

    int insertBatch(@Param("roleId") Long roleId, @Param("menuIds") List<Long> menuIds);
}
